package com.dx.common.table.ppt;

/**
 * AbstractRet_stocker_emptId entity provides the base persistence definition of
 * the Ret_stocker_emptId entity. @author MyEclipse Persistence Tools
 */

public class Ret_stocker_emptId implements
		java.io.Serializable {

	// Fields

	private String stocker_id_fk;
	private String sour_stocker_id;

	// Constructors

	/** default constructor */
	public Ret_stocker_emptId() {
	}

	/** full constructor */
	public Ret_stocker_emptId(String stocker_id_fk,
			String sour_stocker_id) {
		this.stocker_id_fk = stocker_id_fk;
		this.sour_stocker_id = sour_stocker_id;
	}

	// Property accessors

	public String getStocker_id_fk() {
		return this.stocker_id_fk;
	}

	public void setStocker_id_fk(String stocker_id_fk) {
		this.stocker_id_fk = stocker_id_fk;
	}

	public String getSour_stocker_id() {
		return this.sour_stocker_id;
	}

	public void setSour_stocker_id(String sour_stocker_id) {
		this.sour_stocker_id = sour_stocker_id;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Ret_stocker_emptId))
			return false;
		Ret_stocker_emptId castOther = (Ret_stocker_emptId) other;

		return ((this.getStocker_id_fk() == castOther.getStocker_id_fk()) || (this
				.getStocker_id_fk() != null
				&& castOther.getStocker_id_fk() != null && this
				.getStocker_id_fk().equals(castOther.getStocker_id_fk())))
				&& ((this.getSour_stocker_id() == castOther
						.getSour_stocker_id()) || (this.getSour_stocker_id() != null
						&& castOther.getSour_stocker_id() != null && this
						.getSour_stocker_id().equals(
								castOther.getSour_stocker_id())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getStocker_id_fk() == null ? 0 : this.getStocker_id_fk()
						.hashCode());
		result = 37
				* result
				+ (getSour_stocker_id() == null ? 0 : this.getSour_stocker_id()
						.hashCode());
		return result;
	}

}